#ifndef _BOX_H_
#define _BOX_H_

#include <windows.h>
#include <d3d9.h>
#include <interfacelib/directx/vertexBufferManager.h>

#define D3DFVF_BOX   D3DFVF_XYZRHW | D3DFVF_DIFFUSE

namespace interfacelib
{
	namespace Window
	{
		class Window;
		class EditBox;
		class Menu;

		class Box
		{
		private:
			struct BOX_VERTEX 
			{
				float x,y,z,rhw;
				DWORD color;
			};	
		public:
			Box();
			virtual ~Box();

			virtual BYTE draw( RECT *rect );

			void setColor( DWORD color ){ m_color = color ; };

		private:
			void createBox();

			interfacelib::DirectX::VertexBufferManager::VertexBuffer *m_BoxVertexBuffer;
			DWORD m_color;

			friend interfacelib::Window::EditBox;
			friend interfacelib::Window::Menu;
		};
	}
}

#endif